diff --git a/swh/web/ui/templates/api.html b/swh/web/ui/templates/api.html index 74313bb4..f255d8c4 100644 --- a/swh/web/ui/templates/api.html +++ b/swh/web/ui/templates/api.html @@ -1,190 +1,190 @@ {% block head %} {% block meta %} {% endblock %} {% block title %}Software Heritage API{% endblock %} {% block style %} {% block bootstrap_theme %} {% endblock %} {% endblock %} {% endblock %}
{% block navbar %} {% endblock %}
{% if 'GET' in allowed_methods %}
GET
{% endif %} {% if 'DELETE' in allowed_methods %}
{% endif %}
{% if view_description %}
{{ view_description|safe }}
{% endif %}
{{ request.method }} {{ request.full_path }}
HTTP {{ status }}{% autoescape off %} {% for key, val in headers.items() %}{{ key }}: {{ val|e }} {% endfor %}
{% if content %}{{ content|urlize_api_links }}{% endif %}
{% endautoescape %}
{% if 'POST' in allowed_methods or 'PUT' in allowed_methods or 'PATCH' in allowed_methods %}
{% if 'POST' in allowed_methods %} {% endif %} {% if 'PUT' in allowed_methods %} {% endif %} {% if 'PATCH' in allowed_methods %} {% endif %}
{% endif %}
{% block footer %} {% endblock %} {% block script %} - + {% endblock %}